import http from '../http';

//列表数据
export const getDindanList=(page,size)=>http({
    url:'/sales/orderlist',
    method:'post',
    params:{
        page,size
    }
});
//删除数据
export const delDindanApi=(id)=>http({
    url:'/sales/delete',
    method:'post',
    params:{
        id
    }
});

//导出
export const ExportApi=()=>http({
    url:'/sales/export',
    method:'post',
    responseType:'arraybuffer'
    
});

//筛选查询
export const OptionsApi=()=>http({
    url:'/sales/selectList',
    method:'post',
    
});
export const QueryApi=(from,to,sellType,orderType,clientName)=>http({
    url:'/sales/selectByName',
    method:'post',
    params:{
        from,to,clientName,orderType,sellType
    },
});

//升降序
export const sortApi=(page,size,sort)=>http({
    url:'/sales/selectBySortList',
    method:'post',
    params:{
        page,size,sort
    }
});
